import request from '@/utils/request'
// 楼宇列表查询
export function getBuilding(params) {
  return request({
    url: `park/building`,
    params

  })
}
// 楼宇新增
export function postBuilding(data) {
  return request({
    url: `park/building`,
    method: 'post',
    data

  })
}
// 楼宇修改
export function putBuilding(data) {
  return request({
    url: `park/building`,
    method: 'put',
    data

  })
}

// 删除楼宇

export function deleteBuilding(id) {
  return request({
    url: `/park/building/${id}`,
    method: 'DELETE'

  })
}
// 园区管理-查询可租赁楼宇

export function getParkRentBuilding() {
  return request({
    url: `park/rent/building`

  })
}
